package com.zxq.shiluwengan.controller;

import com.zxq.shiluwengan.frame.decoder._38ConsumerTypeResult;
import com.zxq.shiluwengan.frame.encoder._38ConsumerTypeCmd;
import com.zxq.shiluwengan.result.ResultVO;
import com.zxq.shiluwengan.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _38ConsumerTypeController extends PlatformExchange<_38ConsumerTypeCmd, _38ConsumerTypeResult> {


    @Override
    public Integer getCmd() {
        return 0x38;
    }

    @PostMapping("exchange/38")
    @Override
    public ResultVO<_38ConsumerTypeResult> exchange(@RequestBody _38ConsumerTypeCmd order) {
        return super.exchange(order);
    }

    @Override
    public _38ConsumerTypeResult getResult() {
        return new _38ConsumerTypeResult();
    }

}
